<template>
	<view class="scenarioChat">
		<uv-navbar leftIcon='arrow-leftward' autoBack></uv-navbar>
		<view class="headTitle">
			<view class="f24333">
				Al scenario chat
			</view>
			<view class="f14666 mb-40">
				You can have a conversation with an Al personyou like
			</view>
			<!--  -->
			<view class="scenario-list" v-for="(item,i) in userList" :key='i'>
				<img :src="item.aImg" alt="" srcset="" />
				<view class="item-c">
					<view class="f16333">
						{{item.name}}
					</view>
					<text class="f12999">{{item.desc}}</text>
				</view>
				<view class="" @click="onChatTelephone(item)">
					<uv-image src="../../static/img/phone.png" width="72rpx" height="72rpx"></uv-image>
				</view>
			</view>

		</view>

	</view>
</template>
<script>
	export default {
		data() {
			return {
				userList: [{
						aImg: 'https://wechat-img-1311286543.cos.ap-guangzhou.myqcloud.com/es/aImg.svg',
						name: '拨号',
						id: '0',
						desc: 'A compassionate blogger,shares heartfelt insights and experiences',
					}, {
						aImg: 'https://wechat-img-1311286543.cos.ap-guangzhou.myqcloud.com/es/aImg.svg',
						name: '我在听',
						id: '1',
						desc: 'A compassionate blogger,shares heartfelt insights and experiences',
					},
					{
						aImg: 'https://wechat-img-1311286543.cos.ap-guangzhou.myqcloud.com/es/aImg2.svg',
						name: '我在想',
						id: '2',
						desc: 'A compassionate blogger,shares heartfelt insights and experiences',
					}, {
						aImg: 'https://wechat-img-1311286543.cos.ap-guangzhou.myqcloud.com/es/aImg.svg',
						name: '我再说',
						id: '3',
						desc: 'A compassionate blogger,shares heartfelt insights and experiences',
					}, {
						aImg: 'https://wechat-img-1311286543.cos.ap-guangzhou.myqcloud.com/es/aImg.svg',
						name: 'Legal444444',
						desc: 'A compassionate blogger,shares heartfelt insights and experiences',
					}, {
						aImg: 'https://wechat-img-1311286543.cos.ap-guangzhou.myqcloud.com/es/aImg.svg',
						name: 'Legal66666',
						desc: 'A compassionate blogger,shares heartfelt insights and experiences',
					}, {
						aImg: 'https://wechat-img-1311286543.cos.ap-guangzhou.myqcloud.com/es/aImg.svg',
						name: 'Legal77',
						desc: 'A compassionate blogger,shares heartfelt insights and experiences',
					}


				]
			}
		},
		methods: {
			onChatTelephone(e) {
				let item = encodeURIComponent(JSON.stringify(e))
				uni.navigateTo({
					url: `../chatTelephone/chatTelephone?item=${item}`
				});
			}

		}
	}
</script>
<style lang="scss" scoped>
	page {
		padding: 40rpx;
		padding-top: 44px;
	}

	.f24333 {
		margin: 60rpx 0;
	}

	.f14666 {
		margin: 40rpx 0;
	}

	.scenario-list {
		display: flex;
		align-items: center;
		background: linear-gradient(90deg, #F3F3F3 0%, rgba(243, 243, 243, 0) 100%);
		padding: 30rpx;
		border: 1.5px solid #FFFFFF;
		border-radius: 40rpx;
		margin: 30rpx 0;

		.item-c {
			margin: 0 20rpx;
		}

	}
</style>